<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__PUBLIC__/styles/general.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body style="background: #278296" >
<form method="post" action="__APP__/Admin/Public/doLogin/" name='theForm' onsubmit="return validate(this);">
  <table cellspacing="0" cellpadding="0" style="margin-top: 100px" align="center">
  <tr>
    <td><img src="__PUBLIC__/images/login_ark.jpg" width="178" height="256" border="0" alt="360 pick" /></td>
    <td style="padding-left: 50px">
      <table>
      <tr>
        <td>管理员姓名：</td>
        <td><input type="text" name="user_name"/></td>
      </tr>
      <tr>
        <td>管理员密码：</td>
        <td><input type="password" name="password" /></td>
      </tr>
      <tr>
        <td>验证码：</td>
        <td><input type="text" name="verify" class="capital" /></td>
      </tr>
      <tr>
      <td colspan="2" align="right">
      <img id="verifyImg" src="__APP__/Admin/Public/verify/" width="145" height="20" alt="看不清？点击更换另一个验证码。" border="1" onclick="fleshVerify();" style="cursor: pointer;" />
      </td>
      </tr>
      <tr><td>&nbsp;</td><td><input type="submit" value="进入管理中心" class="button" /></td></tr>
     
      </table>
    </td>
  </tr>
  </table>
</form>
</body>
<script type="text/javascript">

document.forms['theForm'].elements['user_name'].focus();

function validate(form) {
	if(form.user_name.value == '') {
		alert("请填写用户名.");
		return false;
	}
	
	if(form.password.value == '') {
		alert("请填写密码.");
		return false;
	}
	
	if(form.verify.value == '') {
		alert("验证码不能为空.");
		return false;
	}
	
	return true;
}

function fleshVerify(){
	//重载验证码
	var timenow = new Date().getTime();
	document.getElementById('verifyImg').src= '__APP__/Admin/Public/verify/'+timenow;
}
</script>